testsuite/gtk/builder.c: Fix running on Visual Studio
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 8 Oct 2020 08:05:40 +0000 (16:05 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 8 Oct 2020 08:11:35 +0000 (16:11 +0800)
Explicitly say in the code that we are exporting the symbols so that when the
test program runs, it can find the required builder symbols.

testsuite/gtk/builder.c

index 78ff3c9b3ad2db0e84985d8f0063a64de411f73b..d57b676d56869ea61f69f7e6ecc0a9e0b10d1d5c 100644 (file)
@@ -2448,13 +2448,13 @@ test_transforms (void)
   g_object_unref (builder);
 }
 
-char *
+G_MODULE_EXPORT char *
 builder_get_search (gpointer item)
 {
   return g_strdup (gtk_string_filter_get_search (item));
 }
 
-char *
+G_MODULE_EXPORT char *
 builder_copy_arg (gpointer item, const char *arg)
 {
   return g_strdup (arg);